package org.yn.dept.service;

import org.yn.base.util.PageInfo;
import org.yn.dept.domain.Department;
import org.yn.finance.vo.DepositSalesVO;
import org.yn.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {



    /**
     * 查找全部
     * @return
     */
    List<Department> selectAll();


    /**
     * 根据id删除部门
     * @param id
     */
    void delete(Long id);

    /**
     * 更新
     * @param department
     */

    void update(Department department);


    /**
     * 新增
     * @param department
     */
    void insert(Department department);


    /**
     * 分页查询
     * @param departmentQuery
     * @return
     */
    PageInfo<Department> queryPage(DepartmentQuery departmentQuery);

    Department selectById(Long id);

    void batchDelete(List<Long> ids);

    List<Department> getDeptTree();

}
